<%--
  Created by IntelliJ IDEA.
  User: ljh
  Date: 2024/10/2
  Time: 8:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored ="false" %>
<%@ taglib prefix="c" uri="jakarta.tags.core" %>
<html>
<head>
    <title>hw-cookie</title>
    <base href="${baseUrl}">
</head>
<body>
<div>
    <h1>hw-cookie</h1>
    <img src="day240925/img/hw-cookie.png" alt="hw-cookie" width="800">
    <hr>
    <h2>hw-cookie-1</h2>
    <c:if test="${isNewUser}">
        <p>
            这是一段首次访问的用户才会显示的内容
            <button onclick="window.location='hw-cookie-1-add-cookie'">点我关闭</button>之后，5分钟之后再访问页面，不会显示。5分钟之后恢复显示
        </p>
        <hr>
    </c:if>
</div>
</body>
</html>